home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 045a / maptdi.zip / MAIL.BAT < prev    next >
DOS Batch File  |  1991-11-21  |  2KB  |  41 lines

  1. @ECHO off
  2. REM
  3. REM This .BAT file runs Consumer Software's Network Courier E-Mail product,
  4. REM since gobbled up by Microsoft to be offered under their own label.
  5. REM
  6.          IF '%1'=='XC' GOTO Exchange_mail
  7.         ECHO:
  8.         ECHO            Mail command for non-TSR programs.
  9.         ECHO:
  10. REM
  11. REM A call to the MapTDisk batchfile will place the letter for the next
  12. REM available (unmapped) drive in the DOS environment variable "TempDisk".
  13. REM If no drives are available for mapping, the variable will be set to "NONE"
  14. REM
  15.         CALL MapTDisk RegLAN1/SYS:Courier\Data
  16.          IF "%TempDisk"=="NONE" GOTO NoCanDo
  17.         MAP INS S1:=RegLAN1/SYS:Courier\EXE
  18. REM
  19. REM If no argument is given, send the user into the mail program, if one (or
  20. REM more) is present, assume that it's an executable like Admin or NewMail.
  21. REM
  22.          IF '%1'=='' %TempDisk%:..\EXE\Mail -D%TempDisk%
  23.          IF NOT '%1'=='' %TempDisk%:..\EXE\%1 -D%TempDisk% %2 %3 %4 %5 %6 %7 %8 %9
  24.         MAP DEL S1:
  25.         CALL DelTDisk
  26.         GOTO End
  27. :Exchange_mail
  28. REM
  29. REM On this LAN (RegLAN1), drives G: & H: are reserved for transient use --
  30. REM no program should ever assume that they are mapped in any particular manner.
  31. REM
  32.         MAP G:=RegLAN2/SYS:Appl\MailData > NUL
  33.         MAP H:=RegLAN1/SYS:Courier\Data >NUL
  34.         H:..\EXE\External -DGH -HH -A -SB -V %2 %3 %4 %5 %6 %7 %8 %9
  35.         MAP DEL G:
  36.         MAP DEL H:
  37.         GOTO End
  38. :NoCanDo
  39.         SET TempDisk=
  40.         ECHO No mappable drives remaining!
  41. :End